<?php
	
namespace Home\Model;
use Think\Model\ViewModel;	

/**
 * 问题模型
 */
class AskModel extends ViewModel {
	
	protected $viewFields=array(
		'ask'=>array(
			'content','time','gold','solve','answer','asid','cid',
			'_type'=>'INNER',
			),
		'user'=>array('uid','adopt','username','exp','_on'=>'user.uid=ask.uid'),
		'category'=>array('cname','pid','_on'=>'category.cid=ask.cid'),
	);
}

	
